STEP 2: Let's call our new function inside of main()! We'll use it to ask our first question to the user.

  • In , drag Call Parameters Into Variable inside and to the bottom of main().
  • Change my_function to ask_user_question.
  • Then, change my_var to warm_blooded and my_parameter1 to sprite.
  • Finally, change my_parameter2 to "Is your animal warm blooded?".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)